import { defineStore } from 'pinia'
import { reqGetHomeDataLIst } from '../api/home/index'

const useHomeStore = defineStore('home', {
  state: () => {
    return {
      homeInfoDate: {}

    }
  },
  actions: {
    // home页面数据
    async getHomeData() {
      const result = await reqGetHomeDataLIst()
      this.homeInfoDate = result.data
      // console.log(this.homeInfoDate)
    }
  },
  getters:{

  }
}
)
export default useHomeStore
